# coding: utf-8
from sqlalchemy import Column, String, TIMESTAMP, Text, text
from sqlalchemy.dialects.mysql import INTEGER
from app.extensions import db


class SystemLog(db.Model):
    __tablename__ = 'sys_user'

    user_id = Column(INTEGER(11), primary_key=True)
    nick_name = Column(String(128, 'utf8_unicode_ci'), index=True)

    def to_dict(self):
        return {
            'user_id': self.user_id,
            'nick_name': self.nick_name
        }
